#include "function.h"



point setpoint(point pointstruct, float x, float y)
{
    pointstruct.x = x;
    pointstruct.y = y;
    return pointstruct;
}

float calmid(const point *pointstruct)
{
    return ((*pointstruct).x + (*pointstruct).y) / 2;
}